package com.learn.hibernatevalidator.chapter06.classlevel;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author: liyf
 * @create: 2025-01-15 22:09
 **/

@Data
@AllArgsConstructor
@NoArgsConstructor
@ValidPassengerCount(message = "There must be not more passengers than seats.")
public class Car {

    private int seatCount;

    private List<Person> passengers;


}
